# Contributor: Sean McAvoy <seanmcavoy@gmail.com>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=greetd-gtkgreet
_pkgname=gtkgreet
pkgver=0.7
pkgrel=0
pkgdesc="GTK-based greeter for greetd"
url="https://git.sr.ht/~kennylevinsen/gtkgreet"
arch="all !s390x !riscv64" # blocked by greetd
license="GPL-3.0-only"
depends="greetd"
makedepends="meson scdoc json-c-dev gtk+3.0-dev gtk-layer-shell-dev"
options="!check" # no test suite
subpackages="$pkgname-doc"
source="greetd-gtkgreet-$pkgver.tar.gz::https://git.sr.ht/~kennylevinsen/gtkgreet/archive/$pkgver.tar.gz
	fix-for-musl-use-uint-ssize.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	abuild-meson output .
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="eea3c90c9f6e4bb4cc8d7cc325668c6452e153dd7097b45694390b843769ee08e3598a7771da3b2765f09dd8f3b9de4910c5160221c8fc7191e2a09709a418f8  greetd-gtkgreet-0.7.tar.gz
85b51914ba81f37c6d6d39c20d1f228bedceb34e11c963b0938e32b475e10c4f699852fb802bb7fb42a3b1de716a5c55d1038a2e9afe37ddb9f68061da8a30ca  fix-for-musl-use-uint-ssize.patch"
